Applied patch from ubuntu so this commits
authorJohn Goerzen <jgoerzen@complete.org>
Wed, 16 Jul 2008 18:21:58 +0000 (13:21 -0500)
committerJohn Goerzen <jgoerzen@complete.org>
Wed, 16 Jul 2008 18:21:58 +0000 (13:21 -0500)
Also reported upstream at
https://sourceforge.net/tracker/?func=detail&atid=489478&aid=2019800&group_id=58972

lmx.c

diff --git a/lmx.c b/lmx.c
index 5082a0cc06ddcceffe2e864c8653b00fe9520471..15625f2abd0ee495c7bbdbcbe56f4ecd25ae2d3b 100644 (file)
--- a/lmx.c
+++ b/lmx.c
@@ -31,7 +31,7 @@
 
 static gbfile *ofd;
 static waypoint *wpt_tmp;
-char *link, *linkt;
+char *linkNEW, *linkt;
 
 #define MYNAME "lmx"
 
@@ -205,25 +205,25 @@ lmx_lm_desc(const char *args, const char **unused)
 static void
 lmx_lm_mlink_s(const char *args, const char **unused)
 {
-       link = linkt = NULL;
+       linkNEW = linkt = NULL;
 }
 
 static void
 lmx_lm_link(const char *args, const char **unused)
 {
-       link = xstrdup(args);
+       linkNEW = xstrdup(args);
 }
 
 static void
 lmx_lm_linkt(const char *args, const char **unused)
 {
-       linkt = xstrdup(args);
+       linkNEW = xstrdup(args);
 }
 
 static void
 lmx_lm_mlink_e(const char *args, const char **unused)
 {
-       waypt_add_url(wpt_tmp, link, linkt);
+       waypt_add_url(wpt_tmp, linkNEW, linkt);
 }